package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffWorkGroupDto
 * @使用场景
 */
@Data
public class BffWorkGroupDto implements Serializable {

    /**
     * 虚拟组织成员ID
     */
    @ApiModelProperty("虚拟组织成员ID")
    private String virtualOrgMemberId;

    /**
     * 虚拟组织成员就职记录ID
     */
    @ApiModelProperty("虚拟组织成员就职记录ID")
    private String virtualOrgInductionRecordId;

    /**
     * 个人账号
     */
    @ApiModelProperty("个人账号")
    private String userId;

    /**
     * 备注首位字母
     */
    @ApiModelProperty("备注首位字母")
    private String firstLetter;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 角色标识
     */
    @ApiModelProperty("角色标识")
    private String roleCode;

    /**
     * 组内职务名称
     */
    @ApiModelProperty("组内职务名称")
    private String virtualOrganizationPosition;

    /**
     * 是否管理员 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否管理员")
    private String isAdmin;

    /**
     * 是否负责人 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否负责人")
    private String isPersonCharge;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffWorkGroupDto that = (BffWorkGroupDto) o;
        return virtualOrgMemberId == that.virtualOrgMemberId && virtualOrgInductionRecordId == that.virtualOrgInductionRecordId && userId == that.userId && firstLetter == that.firstLetter && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && roleCode == that.roleCode && virtualOrganizationPosition == that.virtualOrganizationPosition && isAdmin == that.isAdmin && isPersonCharge == that.isPersonCharge;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), virtualOrgMemberId, virtualOrgInductionRecordId, userId, firstLetter, userFace, idCardName, nickName, roleCode, virtualOrganizationPosition, isAdmin, isPersonCharge);
    }


}
   